package service_Test;

import Factory.BeanFactory;
import dao_Test.Dao;
import dao_Test.DaoImpl;

public class Service1Impl implements  Service1 {
    public  void testService() {
        for (int i=0;i<5;i++){
            Dao dao = (DaoImpl)BeanFactory.getBean("DaoImpl");
            System.out.println(dao);
            dao.test();
        }

    }
}
